package com.un.ebs.purchase.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.un.ebs.purchase.domain.PurchaseOrderItem;
import com.un.ebs.purchase.enums.PurchaseOrderTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * Add dto.
 * </p>
 *
 * @author liubo
 * @since 2020-05-30
 */
@Data
public class PurchaseOrderAddDto {

    //private String code;

    @NotNull(message = "采购合同号不能为空。")
    private String contractCode;

    @NotNull(message = "请选择供应商。")
    private String supplierEntId;

    private String personnelId;

    private Date planDeliverDate;

    @NotNull(message = "请指定采购订单类型。")
    private PurchaseOrderTypeEnum orderType;

    private List<PurchaseOrderItemDto> items;

}